var express=require("express");
var router=require('./routers');
var template=require('express-art-template');
var bodyParser = require('body-parser')
var app=express();
// parse application/json
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use('/node_modules/',express.static('./node_modules/'))
app.use('/public/',express.static('./public/'))
app.engine('html',template)

var prot=3000;
        app.use('/',router)
app.listen(prot,function(){
    console.log(`服务器启动成功，检测端口号是3000!`)
})
